package com.fy.market.persistent.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 策略奖品关联表
 *
 * @author fwq
 * @date 2025-09-03
 * @desc 策略奖品关联表
 * @TableName: strategy_award
 * @Package: com.fy.market.infrastructure.po
 */
@Data
@TableName("strategy_award")
public class StrategyAward implements Serializable {
    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 抽奖策略ID
     */
    @TableField(value = "strategy_id")
    private Integer strategyId;
    /**
     * 抽奖奖品ID - 内部流转使用
     */
    @TableField(value = "award_id")
    private Integer awardId;
    /**
     * 抽奖奖品标题
     */
    @TableField(value = "award_title")
    private String awardTitle;
    /**
     * 抽奖奖品副标题
     */
    @TableField(value = "award_subtitle")
    private String awardSubtitle;
    /**
     * 奖品库存总量
     */
    @TableField(value = "award_count")
    private Integer awardCount;
    /**
     * 奖品库存剩余
     */
    @TableField(value = "award_count_surplus")
    private Integer awardCountSurplus;
    /**
     * 奖品中奖概率
     */
    @TableField(value = "award_rate")
    private BigDecimal awardRate;
    /**
     * 状态：1正常 0禁用
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Timestamp updateTime;
}